<?php
require_once 'application/models/AbstractModel.php';

class SousMenu extends AbstractModel
{
    protected $_name = 'Sous_menu';
    
    protected $_referenceMap    = array(
        'SousMenu' => array(
            'columns'           => 'menu_principal_id',
            'refTableClass'     => 'MenuPrincipal',
            'refColumns'        => 'id',
    		'onDelete'          => self::CASCADE
        )
    );
    
    function __construct() {
        parent::__construct();
    	$this->_fieldsToDisplay = array('id', 'menu_principal_id', 'nom', 'sort_order', 'params');
	}
}
    	